<%@page import="dier.xuanke"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>用户修改页面</title>

</head>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:25px;
    color: green;
   }
 </style>
<body>
 <div class="xx">
<%
String StuID=request.getParameter("StuID");
String StuName=request.getParameter("StuName");
String Sex=request.getParameter("Sex");
String Age=request.getParameter("Age");
String Zhuanye=request.getParameter("Zhuanye");
String Stuclass=request.getParameter("Stuclass");

	xuanke xk=new xuanke();
	int flag=xk.xiugaiStu(StuID, StuName, Sex, Age, Zhuanye, Stuclass);
	if(flag==0)
	{
		%>
		<script type="text/javascript" >
			alert("错误:修改失败。");        
			window.location='Stuzijixiugai.jsp' ;    
		</script>
		<%
	}
	else
	{
		%>
		<script type="text/javascript" >
			alert("成功:修改成功。");        
			window.location='Student.jsp' ;    
		</script>
		<%
	}
	%>

</div>
</body>
</html>